home *** CD-ROM | disk | FTP | other *** search
- tell application "iView mediaPro"
-
-
- tell window 1
-
- (* methods for accessing field properties *)
-
- -- get the name of field 1
- -- get the name of field after field 1
- -- get the name of every field
- -- get the name of every field of object 1 -- same as above
- -- get the index of every field whose name contains "A"
- -- get the name of fields 1 through 4 -- make sure you have 4 fields defined
-
- -- set the name of field 1 to "Ages" -- must be unique
- -- set the name of every field to {"Age", "Ape", "Ace"} -- must have 3 fields or less
-
-
- (* get/set of values for object fields *)
-
- -- get field 2 of object 1
- -- if exists field "Age" then
- -- get field "Age" of object 1 -- error if no field Age exists
- -- end if
- -- set field 1 of object 1 to "asdasd"
-
-
- (* it's faster & more efficient to use data lists *)
-
- -- set every field of every object to {"1 year", "male"} -- first 2 fields are set, rest are cleared
- -- set every field of (every object whose name contains "clio") to {"10 month", "female"}
-
-
- (* function samples *)
-
- -- count fields
- -- exists field 2
-
-
- (* command samples *)
-
- -- add field
- -- add field as "Price"
- -- delete field 3
-
- end tell
-
- (* some more *)
- -- delete field 1 of every window
- -- get the name of every field of every window
- -- count field of every window
- -- set the name of every field of window 1 to (the name of every field of window 2 as list)
-
- end tell